#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include "register.h"
#include "mainwindow.h"
#include <QMessageBox>
#include <QSqlQuery>
#include <QString>

namespace Ui {
class Login;
}

class Login : public QDialog
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = 0);
    ~Login();

private slots:
    void on_register_2_clicked();
    void on_login_clicked();

private:
    Ui::Login *ui;
    Register a;//为了打开非模态的注册窗口
    MainWindow b;//关闭登录界面，打开主菜单
};

#endif // DIALOG_H
